package cn.zlp.hrm.domain;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zlp
 * @since 2022-01-08
 */
@TableName("t_course_resource")
public class CourseResource extends Model<CourseResource> {

private static final long serialVersionUID=1L;

                        @TableId(value = "id", type = IdType.AUTO)
                            private Long id;
    /**
     * 课程id
     */
    @TableField("course_id")
                private Long courseId;
    /**
     * 图片id
     */
                private String resources;


    public Long getId(){
            return id;
            }

        public void setId(Long id) {
            this.id = id;
            }

    public Long getCourseId(){
            return courseId;
            }

        public void setCourseId(Long courseId) {
            this.courseId = courseId;
            }

    public String getResources(){
            return resources;
            }

        public void setResources(String resources) {
            this.resources = resources;
            }

@Override
protected Serializable pkVal(){
            return this.id;
        }

@Override
public String toString() {
        return "CourseResource{" +
                ", id=" + id +
                ", courseId=" + courseId +
                ", resources=" + resources +
        "}";
        }
        }
